package com.itqf.log;

import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;

/**
 * projectName: logandquartzgp8
 *
 * @author: 赵伟风
 * time: 2021/8/10 10:52
 * description: commons-logging + log4j apache
 */
public class CommonLoggingUse {


    static Log log = LogFactory.getLog(CommonLoggingUse.class);

    public static void main(String[] args) {


        log.trace("[位置 类和方法]+[错误信息]+[错误原因]+[解决方案]+[参数输出]");

        String simpleName = CommonLoggingUse.class.getSimpleName();

        log.debug("debug");
        log.info("info");
        log.warn("warn");
        log.error(simpleName+": main"+"xxxxx"+"xxx");


        log.fatal("fatal");

    }

}
